package com.pojo;

import java.io.Serializable;
import java.util.List;

public class Users<Orders> implements Serializable {
        /**
         *
         */
        private Integer id;

        /**
         *
         */
        private String username;

        /**
         *
         */
        private String address;

        public List<Orders> getOrdersList() {
            return ordersList;
        }

        public void setOrdersList(List<Orders> ordersList) {
            this.ordersList = ordersList;
        }

        private List<Orders> ordersList;

        private static final long serialVersionUID = 1L;

        /**
         *
         */
        public Integer getId() {
            return id;
        }

        /**
         *
         */
        public void setId(Integer id) {
            this.id = id;
        }

        /**
         *
         */
        public String getUsername() {
            return username;
        }

        /**
         *
         */
        public void setUsername(String username) {
            this.username = username;
        }

        /**
         *
         */
        public String getAddress() {
            return address;
        }

        /**
         *
         */
        public void setAddress(String address) {
            this.address = address;
        }

        @Override
        public boolean equals(Object that) {
            if (this == that) {
                return true;
            }
            if (that == null) {
                return false;
            }
            if (getClass() != that.getClass()) {
                return false;
            }
            Users other = (Users) that;
            return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
                    && (this.getUsername() == null ? other.getUsername() == null : this.getUsername().equals(other.getUsername()))
                    && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()));
        }

        @Override
        public int hashCode() {
            final int prime = 31;
            int result = 1;
            result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
            result = prime * result + ((getUsername() == null) ? 0 : getUsername().hashCode());
            result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
            return result;
        }

        @Override
        public String toString() {
            StringBuilder sb = new StringBuilder();
            sb.append(getClass().getSimpleName());
            sb.append(" [");
            sb.append("Hash = ").append(hashCode());
            sb.append(", id=").append(id);
            sb.append(", username=").append(username);
            sb.append(", address=").append(address);
            sb.append(", ordersList=").append(ordersList);
            sb.append(", serialVersionUID=").append(serialVersionUID);
            sb.append("]");
            return sb.toString();
        }
    }

